package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 采购明细实体类
 */
@TableName("t_buydetail")
@ApiModel(value = "采购订单明细实体类", description = "封装采购订单明细相关属性")
public class BuyDetailBean {
    @TableId(value = "pk_buyDetailId", type = IdType.AUTO)
    @ApiModelProperty("采购明细编号")
    private Integer buyDetailId;
    @TableField("fk_buyOrderId")
    @ApiModelProperty("采购订单编号")
    private Integer buyOrderId;
    @TableField("fk_productId")
    @ApiModelProperty("商品编号")
    private String productId;
    @TableField(exist = false)
    @ApiModelProperty("采购订单")
    private BuyOrderBean buyOrder;
    @TableField(exist = false)
    @ApiModelProperty("商品对象")
    private ProductBean product;
    @TableField("bd_buyNum")
    @ApiModelProperty("采购数量")
    private Integer buyNum;
    @TableField("bd_buyPrice")
    @ApiModelProperty("采购价")
    private Integer buyPrice;

    public BuyDetailBean() {
    }

    public Integer getBuyDetailId() {
        return buyDetailId;
    }

    public void setBuyDetailId(Integer buyDetailId) {
        this.buyDetailId = buyDetailId;
    }

    public Integer getBuyOrderId() {
        return buyOrderId;
    }

    public void setBuyOrderId(Integer buyOrderId) {
        this.buyOrderId = buyOrderId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public BuyOrderBean getBuyOrder() {
        return buyOrder;
    }

    public void setBuyOrder(BuyOrderBean buyOrder) {
        this.buyOrder = buyOrder;
    }

    public ProductBean getProduct() {
        return product;
    }

    public void setProduct(ProductBean product) {
        this.product = product;
    }

    public Integer getBuyNum() {
        return buyNum;
    }

    public void setBuyNum(Integer buyNum) {
        this.buyNum = buyNum;
    }

    public Integer getBuyPrice() {
        return buyPrice;
    }

    public void setBuyPrice(Integer buyPrice) {
        this.buyPrice = buyPrice;
    }

    @Override
    public String toString() {
        return "BuyDetailBean{" +
                "buyDetailId=" + buyDetailId +
                ", buyOrderId=" + buyOrderId +
                ", productId='" + productId + '\'' +
                ", buyOrder=" + buyOrder +
                ", product=" + product +
                ", buyNum=" + buyNum +
                ", buyPrice=" + buyPrice +
                '}' + "\n";
    }
}
